[XEND] Minor stylistic fixes for XendBootloader.py
authoracnt2@huggins.lce.cl.cam.ac.uk <acnt2@huggins.lce.cl.cam.ac.uk>
Thu, 5 Oct 2006 16:29:19 +0000 (17:29 +0100)
committeracnt2@huggins.lce.cl.cam.ac.uk <acnt2@huggins.lce.cl.cam.ac.uk>
Thu, 5 Oct 2006 16:29:19 +0000 (17:29 +0100)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendBootloader.py

index e1e229ddc872e6343fb81d0e9aab476ad84de8d2..879b39806d8877fcf01aeb176386a6722f5d503e 100644 (file)
@@ -38,7 +38,7 @@ def bootloader(blexec, disk, quiet = 0, blargs = None, imgcfg = None):
         raise VmError(msg)
 
     while True:
-        fifo = "/var/lib/xen/xenbl.%s" %(random.randint(0, 32000),)
+        fifo = "/var/lib/xen/xenbl.%s" % random.randint(0, 32000)
         if not os.path.exists(fifo):
             break
     os.mkfifo(fifo, 0600)
@@ -48,7 +48,7 @@ def bootloader(blexec, disk, quiet = 0, blargs = None, imgcfg = None):
         args = [ blexec ]
         if quiet:
             args.append("-q")
-        args.append("--output=%s" %(fifo,))
+        args.append("--output=%s" % fifo)
         if blargs is not None:
             args.extend(shlex.split(blargs))
         args.append(disk)